package gcb.metalsys.entity.cop;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2019-12-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CopProduct extends Model<CopProduct> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "product_id", type = IdType.AUTO)
    private Long productId;

    private String productNumber;

    private String companyNumber;

    private String productName;

    private Integer productStatus;

    @TableField(exist = false)
    private String productStatusName;

    private BigDecimal productServiceCharge;

    private String productStartTime;

    private String productEndTime;

    private String productDescription;

    private String productIcon;

    public CopProduct(String productNumber, String companyNumber, String productName, Integer productStatus, BigDecimal productServiceCharge, String productStartTime, String productEndTime, String productDescription, String productIcon) {
        this.productNumber = productNumber;
        this.companyNumber = companyNumber;
        this.productName = productName;
        this.productStatus = productStatus;
        this.productServiceCharge = productServiceCharge;
        this.productStartTime = productStartTime;
        this.productEndTime = productEndTime;
        this.productDescription = productDescription;
        this.productIcon = productIcon;
    }

    public CopProduct() {
    }

    @Override
    protected Serializable pkVal() {
        return this.productId;
    }

}
